/ Assembly List / LJCNetCommon / CodeTokenizer / HasBothDelimiters

Namespace - LJCNetCommon


Parameters
text - The text value.
beginDelimiter - The begin delimiter.
endDelimiter - The end delimiter.

Returns

True if both delimiters are found.

Syntax

C#
public Boolean HasBothDelimiters(String text, String beginDelimiter, String endDelimiter)

Check if the text is a Full summary comment. (E)

Example

C#
using LJCNetCommon;

var tokenizer = new CodeTokenizer();
string text = " <summary>This is an XML comment.</summary>";
tokenizer.SetTokens(text);
short tokenIndex = 1;
string token = tokenizer.GetToken(tokenIndex);
bool hasBoth = tokenizer.HasBothDelimiter(token, "<summary>"
  , "</summary>");
// Value hasBoth is true.

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.